﻿using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    abstract class HeaderOrFooterRecord: BiffRecord
    {
        private XLUnicodeString ast;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            if (length > 0)
            {
                ast.Read(context.Reader);
            }

        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            string s = (string) ast;
            if (s != null)
                ast.Write(context);
        }
    }
}